package com.mornd.gulimall.apis.member.to;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author: mornd
 * @dateTime: 2023/8/18 - 22:45
 */

@Getter
@Setter
public class MemberLoginTo {

    @NotBlank(message = "账号不能为空")
    // 可能是账号可能是手机号
    @Size(min = 3, max = 20, message = "账号长度须在{min}-{max}之间")
    private String account;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度须在{min}-{max}之间")
    private String password;
}
